package com.example.springboot.service;

import com.example.springboot.entity.CityPopulation;
import com.example.springboot.entity.EthnicPopulation;
import com.example.springboot.mapper.CitypopulationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 功能：
 * 作者：陈雷
 * 日期：2024/11/11 14:47
 */

@Service
public class CitypopulationService {
    @Autowired
    private CitypopulationMapper citypopulationMapper;

    // 查询所有市区2022年人口总数
    public List<CityPopulation> selectByCity() {
        return citypopulationMapper.selectByCity();
    }


}